package FactoryMode.version1;

public class Main {

    public static void main(String[] args) {
        IFactory operFactory=new AddFactory();
        Operation oper=operFactory.CreateOperation();
        oper.set_numberA(1);
        oper.set_numberB(2);
        double result=oper.GetResult();
        System.out.println(result);
    }
}
